<template>
	<view class="content">
		<image @click="to" class="logo" src="/static/logo.png"></image>
		<view class="text-area">
			我的项目2
			<span class="icon iconfont icon-mimakejian"></span>
			<text class="title">{{title}}</text>
		</view>

		<button @click="to2">跳转</button>
	</view>
</template>
<script setup>
	import { ref } from 'vue';
	import { onLoad } from '@dcloudio/uni-app'
	import {navigate} from '../../utils/interceptor';
	 import { getSchoolInfo } from '@/service/apis';
	// import {httpa} from '../../utils/http'
	const to = () => {
		uni.navigateTo({
			url: '/pages/user/user'
		})
	};
	const to2 = () => {
			navigate("/pages/user/user");
    };
	
	const title=ref("hello");
	
	 //获取学校介绍
	 
	 const getSchoolData=async ()=>{
		 
		 const res=await getSchoolInfo();
		 
		 console.log("请求结果",res);
		 
	 }
	
	onLoad(()=>{
		console.log("aaaaaaaaaaa");
		getSchoolData();
	})


	// export default {

	// 	data() {
	// 		return {
	// 			title: 'Hello'
	// 		}
	// 	},
	// 	onLoad() {

	// 	},
	// 	methods: {

	// 		to() {

	// 			uni.navigateTo({
	// 				url: '/pages/user/user'
	// 			})

	// 		},
	// 		to2() {

	// 			navigate("/pages/user/user");

	// 		},
	// 		change(e) {
	// 			console.log(e);
	// 		}
	// 	}
	// }
</script>

<style>
	.content {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
	}

	.logo {
		height: 200rpx;
		width: 200rpx;
		margin-top: 200rpx;
		margin-left: auto;
		margin-right: auto;
		margin-bottom: 50rpx;
	}

	.text-area {
		display: flex;
		justify-content: center;
	}

	.title {
		font-size: 36rpx;
		color: #8f8f94;
	}
</style>